#ifndef QCIRCULARWIDGET_H
#define QCIRCULARWIDGET_H

#include "../widgets/qwidgethost.h"

#include <QWidget>

class QCircularWidget : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(int line_width READ lineWidth WRITE setLineWidth)
public:
    explicit QCircularWidget(QWidget *parent = 0);

    int     lineWidth();
    void    setLineWidth(int lineWidth);
protected:
    void paintEvent(QPaintEvent *);
signals:
    
public slots:
protected:
    int     m_line_width;
};


class QCircularWidgetHost : public QWidgetHost
{
    Q_OBJECT
public:
    Q_INVOKABLE QCircularWidgetHost(QAbstractHost *parent = 0);

    static QString get_show_name();
    static QString get_show_icon();
    static QString get_show_group();
public slots:
    int     lineWidth();
    void    setLineWidth(int lineWidth);

    int     lineStyle();
    void    setLineStyle(int lineStyle);
protected:
    void init_property();
protected:
    void    create_object();
};


#endif // QCIRCULARWIDGET_H
